#ifndef BUF_PRIVATE_H
#define BUF_PRIVATE_H

#include "buf.h"

typedef uint8_t buf_elem_t;

struct buf {
  buf_elem_t *buf;
  size_t size;
  size_t capacity;
};

int buf_ensure_capacity(buf_t *, size_t);

#endif
